const articlesModule = require('./articlesModule')
const categoryModule = require('./categoryModule')
const defineAssociations  = ()=>{
    articlesModule.belongsTo(categoryModule,{
        foreignKey:'category_id',
        as:'category'
    })
}

module.exports = defineAssociations